import request from '@/utils/request'

// 查询线路事件列表
export function listRouteEvent(query) {
  return request({
    url: '/dispatch/routeEvent/list',
    method: 'get',
    params: query
  })
}

// 查询线路事件详细
export function getRouteEvent(id) {
  return request({
    url: '/dispatch/routeEvent/' + id,
    method: 'get'
  })
}

// 新增线路事件
export function addRouteEvent(data) {
  return request({
    url: '/dispatch/routeEvent',
    method: 'post',
    data: data
  })
}

// 修改线路事件
export function updateRouteEvent(data) {
  return request({
    url: '/dispatch/routeEvent',
    method: 'put',
    data: data
  })
}

// 删除线路事件
export function delRouteEvent(id) {
  return request({
    url: '/dispatch/routeEvent/' + id,
    method: 'delete'
  })
}
